package com.monkeys.mapper;

import com.monkeys.pojo.Accident;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author kjx
 */

@Mapper
public interface AccidentMapper {

    //返回所有信息
    @Select("select id, accident_type, probability from accident")
    List<Accident> getAll();
}
